#ifndef CORECTRL_H
#define CORECTRL_H

#include <QObject>
#include "communicate/webhandler.h"
#include "userpool.h"

class CoreCtrl: public QObject
{
    Q_OBJECT
public:
    static CoreCtrl* get_instance();
    ~CoreCtrl();
    void start(quint16 port);

private:
    explicit CoreCtrl(QObject *parent = nullptr);

    WebHandler* web_handler_;
    UserPool user_pool_;
};

#define CORECTRL CoreCtrl::getInstance()

#endif // CORECTRL_H
